-- GENERATED SPELL FOR [Myranda the Hag] --


function spell0_11872(pUnit, Event) --@Scarlet Illusion,n/a--
pUnit:FullCastSpellOnTarget(17961,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11872', 572, 1)
end

function Sorts_11872(pUnit, Event)
local choix_sorts_11872 = math.random(0, 0)
if choix_sorts_11872 == 0 then
pUnit:RegisterEvent('spell0_11872', 1, 1)
end
end

function mob11872_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11872', math.random(1500, 3000), 1)
end

function mob11872_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11872_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11872_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11872, 1, 'mob11872_Action')
RegisterUnitEvent(11872, 2, 'mob11872_Leave')
RegisterUnitEvent(11872, 3, 'mob11872_Kill')
RegisterUnitEvent(11872, 4, 'mob11872_Die')
